package cn.bonoon.handler;

import java.util.List;

import javax.servlet.ServletContext;

import org.springframework.context.ApplicationContext;

import cn.bonoon.kernel.support.ProxyEntityManager;
import cn.bonoon.kernel.support.entities.Persistable;
import cn.bonoon.kernel.support.searcher.ISearcher;
import cn.bonoon.kernel.web.handlers.IExecutable;

public interface AutoManager extends ProxyEntityManager{
	IExecutable handler(String key);

	ServletContext getServletContext();
	ApplicationContext getApplicationContext();
	List<?> query(String ql, Object arg);
	
	void register(IExecutable handler);

	ISearcher getSesrcher(Class<? extends Persistable> value);
}
